package com.heima.behavior.controller.v1;

import com.heima.behavior.compo.TianxingApi;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author brianxia
 * @version 1.0
 * @date 2022-09-30 16:24
 */
@RestController
@RequestMapping("/tianxing")
public class TianxingController {

    @Autowired
    private TianxingApi tianxingApi;

    @GetMapping("/tiangou")
    public ResponseResult tiangou(){
        return ResponseResult.okResult(tianxingApi.tiangouriji());
    }
}
